<?php
//non-OOP wood
require_once 'api/GameBoard.php';
require_once 'api/GameUser.php';

function CheckRule(GameBoard $board, $step) {
	$cells = $board->getCurrentUser()->getCells();
	
	echo "\ncells: ".$cells[$step]."\n ";
	echo "\ncells: ".($cells[$step] > 0)."\n ";
	if ($cells[$step] > 0) {
		return TRUE;
	} else {
		return FALSE;
	}
	
}